﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

using NUnit.Framework;

namespace ERPStore.NewsLetters.Tests.Controllers
{
	[TestFixture]
	public class NewsLettersServiceTests : ERPStore.Tests.TestBase
	{
		[SetUp]
		public void Setup()
		{
			base.Initialize();
		}

		[Test]
		public void Create_Campaign()
		{
			var newsLettersApiController = CreateApiController<ERPStore.Web.NewsLetters.Controllers.NewsLettersApiController>();

			var campaign = newsLettersApiController.CreateCampaign();

			Assert.IsNotNull(campaign);
		}

		[Test]
		public void Create_NewsLetter()
		{
			var newsLettersApiController = CreateApiController<ERPStore.Web.NewsLetters.Controllers.NewsLettersApiController>();

			var newsLetter = newsLettersApiController.CreateNewsLetter();

			Assert.IsNotNull(newsLetter);
		}

	}
}
